package com.jiyun.service.goods;
import com.jiyun.entity.PageResult;
import com.jiyun.pojo.goods.Ad;

import java.util.*;

/**
 * ad业务逻辑层
 */
public interface AdService {


    public List<Ad> findAll();


    public PageResult<Ad> findPage(int page, int size);


    public List<Ad> findList(Map<String, Object> searchMap);


    public PageResult<Ad> findPage(Map<String, Object> searchMap, int page, int size);


    public Ad findById(Integer id);

    public void add(Ad ad);


    public void update(Ad ad);


    public void delete(Integer id);

    List<Ad> findByPosition(String index_lb);

    public void saveAdToRedisByPosition(String index_lb);
}
